package com.lt.experiment04.mission03;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment04.mission03
 * @ClassName Yan
 * @Description to do
 * @date 2021/11/2 11:27
 */
public class Yan extends CondimentDecorator{
    Bread b;

    public Yan(Bread b) {
        this.b = b;
    }

    @Override
    public double cost() {
        return b.cost()+0.2;
    }

    @Override
    public String getDescription() {
        return b.getDescription()+"、盐";
    }
}
